<?php
/**
 * 功能: 攻略
 * User: 文丹
 * Date: 2018/7/10 0010
 * Time: 15:46
 */

namespace app\index\model;

use think\Db;
use think\Model;

class Strategy extends Model{
    /**
     * 获取全部攻略
     */
    public function getStrategy(){
        $res = Db::name('strategy')->select();
        return $res;
    }
    /**
     * 详情
     */
    public function getDetail($id){
        $res = Db::name('strategy')->where('id',$id)->select();
        return $res;
    }

}